﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace AIC_PN
{
    public partial class index : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            SqlHelper.ConnectToServer();
            if (Request.QueryString["p"] == "0")
            {
                MyCommon.AddMessage(this.Master, "Bạn không có quyền truy cập chức năng này", MyConst.MessageType.Warning);
            }
        }
        public void Application_Error(object sender, EventArgs e)
        {
            //Response.Write("Hello");
            //// At this point we have information about the error
            //var ctx = HttpContext.Current;

            //var exception = ctx.Server.GetLastError();

            //var errorInfo =
            //   "<br>Offending URL: " + ctx.Request.Url +
            //   "<br>Source: " + exception.Source +
            //   "<br>Message: " + exception.Message +
            //   "<br>Stack trace: " + exception.StackTrace;

            //ctx.Response.Write(errorInfo);

            //Server.ClearError();
        }
    }
}
